package com.zhdl.hardware.plc.siemens.repository;

import com.zhdl.modules.tools.CommonCallback;

public interface SiemensCmdHandleDao {
    /**
     * 读取plc的值
     *
     * @param address   寄存器地址
     * @param count     寄存器个数
     * @param callback  回调
     */
    void raedValueByAddress(String address, int count, CommonCallback<String> callback);

    /**
     * 写入plc的值
     *
     * @param address   寄存器地址
     * @param value     寄存器值
     */
    void writeValueByAddress(String address, String value);
}
